﻿#region Code File Comment

// SOLUTION   ： redis
// PROJECT    ： Hiram.Redis
// FILENAME   ： HostItem.cs
// AUTHOR     ： soft-zh
// CREATE TIME： 2016-12-1 9:42
// COPYRIGHT  ： 版权所有 (C) gbat https://gitee.com/gbat 2016~2018

#endregion

#region using namespace

using System.ComponentModel;


#endregion

namespace Hiram.Redis.Config
{
    public class HostItem
    {
        [Description("主机地址")]
        public string Host { get; set; } //= NewLife.Configuration.Config.GetConfig<string>("XWriteHost");


        [Description("链接数")]
        public int Connections { get; set; } = 60;

    }
    public class ReadHostItem
    {
        [Description("读主机地址")]
        public string ReadHost { get; set; }// = AppSettings.GetConfigValue("XReadHost");

        [Description("链接数")]
        public int Connections { get; set; } = 60;


    }
    public class WriteHostItem
    {
        [Description("写主机地址")]
        public string WriteHost { get; set; } //= AppSettings.GetConfigValue("XWriteHost");


        [Description("链接数")]
        public int Connections { get; set; } = 2;


    }
}